package com.xw.wuliu;


import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.DecelerateInterpolator;
import android.view.animation.Interpolator;
import android.widget.Button;
import android.widget.RelativeLayout;

public class FeedBackForm extends Activity {
	

	private Button btBack = null;
	RelativeLayout feedLayout = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {

		super.onCreate(savedInstanceState);
		setContentView(R.layout.feedback_form);
		
		setupView();
	}
    private Interpolator accelerator = new AccelerateInterpolator();
    private Interpolator decelerator = new DecelerateInterpolator();
	public void setupView()
	{
		
		feedLayout = (RelativeLayout) findViewById(R.id.feed);
		
		
	/**
	 * 
	 * 	 support by android level 11 or above 

		feedLayout.setRotationY(-90f);
		
        final ObjectAnimator invisToVis = ObjectAnimator.ofFloat(feedLayout, "rotationY",
                -90f, 0f);
        invisToVis.setDuration(500);
        invisToVis.setInterpolator(decelerator);
        
        invisToVis.start();	 */
		
		btBack = (Button) findViewById(R.id.btback);
		btBack.setOnClickListener(new OnClickListener()
		{

			@Override
			public void onClick(View v) {
		
				FeedBackForm.this.finish();
				
			}
			
		});

		return;
	}

}
